package top.huntwolf.admin.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.huntwolf.admin.pojo.Cart;

@Mapper
@Repository
public interface CartDao {

    /*为用户绑定购物车*/
    int insert(Cart cart);

    /*查询购物车以及商品项信息*/
    Cart selectCartWithItems(String openId);

    /*查询购物车基本信息*/
    Cart selectCart(String openId);
}
